![]() |
PATH![]() |
![]() ![]() |
Obtains a piece of data that has been previously associated with a menu item.
pascal OSStatus GetMenuItemProperty (
MenuHandle menu,
UInt16 item,
OSType propertyCreator,
OSType propertyTag,
UInt32 bufferSize,
UInt32 *actualSize,
void *propertyBuffer);
GetMenuItemPropertySize
to get the data's size. If the size specified in the
bufferSize
parameter does not match the actual size of the property,
GetMenuItemProperty
only retrieves data up to the size specified or up to the actual size of the property, whichever is smaller, and an error is returned.
You may use the function
GetMenuItemProperty
to obtain a copy of data previously set with the function
SetMenuItemProperty
.